<?php

use yii\helpers\Html;
use yii\grid\GridView;
use kartik\dialog\Dialog;
use yii\web\JsExpression;
/* @var $this yii\web\View */
/* @var $searchModel backend\modules\articlesite\models\ArticlesiteArticleSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
//
//Dialog::DIALOG_CONFIRM = [
//    'type' => Dialog::TYPE_WARNING,
//    'title' => Yii::t('kvdialog', 'Confirmation'),
//    'btnOKClass' => 'btn-warning',
//    'btnOKLabel' => Dialog::ICON_OK . ' ' . Yii::t('kvdialog', 'Ok'),
//    'btnCancelLabel' => Dialog::ICON_CANCEL . ' ' . Yii::t('kvdialog', 'Cancel')
//];

$this->title = $title;

$js = <<< JS
$(document).ready(function(){
         krajeeDialog.confirm("$content", function(out){
        if(out) {
            location.href="$url"
        }
    });
 });
JS;


$this->registerJs($js);
echo Dialog::widget(['options' => ['type' => Dialog::TYPE_WARNING,'btnOKLabel' => ' 知道了','draggable' => true, 'closable' => false]]);
?>








